{extend name='admin@main'}

{block name="button"}
<button data-modal='{:url("add")}' data-title="创建系统钱包" class='layui-btn layui-btn-sm layui-btn-primary'>创建系统钱包</button>
{/block}

{block name="content"}
<div class="think-box-shadow">
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
            </th>
            <th class='text-left'>钱包地址</th>
            <th class="text-left">币种编号</th>
            <th class="text-left">回调地址</th>
            <th class="text-left">二维码</th>
            <th class="text-left"></th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='list-table-check-td think-checkbox'>
                <input class="list-check-box" value='{$vo.id}' type='checkbox'>
            </td>
            <td class='text-left'>
                {$vo.address|default=''}
            </td>
            <td class='text-left'>
                {$vo.coin_type|default=''}
            </td>
            <td class='text-left'>
                {$vo.call_url|default=''}
            </td>
            <td class='text-left'>
                {notempty name='vo.qrcode'}
                    <img data-tips-image style="width:60px;height:60px" src="{$vo.qrcode|default=''}" class="margin-right-5 text-top">
                {/notempty}
            </td>
            <td class='text-left'>
                {if auth("admin/sys_wallet/remove")}
                <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除数据吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
                {else}
                    <a data-tips-text="您没删除的权限哦！" class="layui-btn layui-btn-sm layui-btn-primary layui-disabled">删 除</a>
                {/if}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}
